package com.fdc_project.controller;


import com.fdc_project.service.impl.ProjectadressServiceImpl;
import com.fdc_project.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Sk
 * @since 2021-11-29
 */
@RestController
@RequestMapping("/projectadress")
public class ProjectadressController {


    @Autowired
    ProjectadressServiceImpl projectadressService;

    @PostMapping("/add")
    public Result addProAdress(String  pro_name ){return projectadressService.addProAdress(pro_name);}

    @PostMapping("/delete")
    public Result delProAdress(Integer pro_id){return projectadressService.delProAdress(pro_id);}
}

